package com.kelp.codetoolkit.editor

import com.intellij.openapi.ui.Divider
import com.intellij.ui.Gray
import com.intellij.ui.JBColor
import com.intellij.ui.JBSplitter

/**
 * @author: liuyuebai
 * @date: 2025/9/10 13:36
 * @description:
 */
class SpringConfigSplitter(vertical: Boolean, proportion: Float): JBSplitter(vertical, proportion) {

    init {
        // ✅ 设置分隔线宽度（关键）
        dividerWidth = 6
    }

    // 可选：重写 createDivider 来自定义外观
    override fun createDivider(): Divider {
        val divider = super.createDivider()
        divider.background = JBColor(Gray.xCD, Gray.x51) // 亮/暗主题颜色
        return divider
    }
}